package testng.service;

import com.iwhalecloud.citybrain.flow.platform.manager.FlowEngineApplication;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowParticipantInfoVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.repository.FlowParticipantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests;

/**
 * @author cheng.huaxing
 * @date 2019-03-04
 */
@SpringBootTest(classes = FlowEngineApplication.class)
public class FlowParticipantServiceImplTest extends AbstractTransactionalTestNGSpringContextTests {

    @Autowired
    private FlowParticipantRepository flowParticipantRepository;

    //@Test
    public void testInsert() {
        FlowParticipantInfoVo participantInfo = new FlowParticipantInfoVo();
        participantInfo.setParticipantId("320322195407003601");
        flowParticipantRepository.insertParticipant(participantInfo);
    }

    //@Test
    public void testFind() {
        flowParticipantRepository.findByParticipantId("3203221954070036010");
    }
}